import { createNameComponent } from "../createNode";
import { shallowRef } from "vue";
import Layout from '@/views/layout/index.vue'

const route = [
  {
    path: "/home",
    redirect: "/home/delicacy",
    component: shallowRef(Layout),
    meta: {
      showMenu:true,
      title: "message.menu.home.delicacy",
      icon: "HomeOutlined",
    },
    children: [
      {
        path: "delicacy",
        component: createNameComponent(() => import("@/views/home/index.vue")),
        meta: {
          title: "message.menu.home.delicacy",
          icon: "FallOutlined",
        },
      },
    ],
  },
];

export default route;
